package com.hexacta.hrs.domain.exchange;

import org.vectrics.common.db.AbstractRecordObject;

public class Accrued extends AbstractRecordObject {
	
	private Long id;
	private Double earn;
	private Double bill;
	private boolean estimated;
	private String comment;
	private Confirmation confirmation;
	private Integer year;
	private Integer month;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Double getEarn() {
		return earn;
	}
	public void setEarn(Double earn) {
		this.earn = earn;
	}
	public Double getBill() {
		return bill;
	}
	public void setBill(Double bill) {
		this.bill = bill;
	}
	public boolean isEstimated() {
		return estimated;
	}
	public void setEstimated(boolean estimated) {
		this.estimated = estimated;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public Confirmation getConfirmation() {
		return confirmation;
	}
	public void setConfirmation(Confirmation confirmation) {
		this.confirmation = confirmation;
	}
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	
	public String getFormatedEstimated(){
		if(estimated){
			return "Yes";
		}else{
			return "";
		}
	}
	
}
